package com.ysd.lis.controller.inv;

import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.request.inv.InvSupplierAppraiseDto;
import com.ysd.lis.request.inv.InvSupplierAppraiseParam;
import com.ysd.lis.service.inv.InvSupplierAppraiseService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author prs
 * @since 2024-09-10
 */
@Api(tags = "供应商评价登记")
@RestController
@RequestMapping("/lis/inv/supplierAppraise")
public class InvSupplierAppraiseController extends BaseController {

    @Autowired
    InvSupplierAppraiseService invSupplierAppraiseService;
    @ApiOperation("查询")
    @GetMapping("/findInvSupplierAppraiseList")
    public Result findInvSupplierAppraiseList(InvSupplierAppraiseParam param){
        return invSupplierAppraiseService.findInvSupplierAppraiseList(param);
    }

    @ApiOperation("修改")
    @PostMapping("/saveOrUpdateInvSupplierAppraise")
    public Result saveOrUpdateInvSupplierAppraise(@RequestBody InvSupplierAppraiseDto dto) {
        return invSupplierAppraiseService.saveOrUpdateInvSupplierAppraise(dto);
    }
    @ApiOperation("批量删除")
    @PostMapping("/batchDeleteInvSupplierAppraiseList")
    public Result batchDeleteInvSupplierAppraiseList(@RequestBody InvSupplierAppraiseDto dto){
        return  invSupplierAppraiseService.batchDeleteInvSupplierAppraiseList(dto);
    }



}
